//分类管理：api函数文件
//1、引入 axios实例
import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi.js";
const module = "/product/category"
//1、根据父id查询下一级分类集合
export function listByPid(pid) {
    return request({
        url: `${module}/listByPid/${pid}`,
        method: 'get'
    })
}
export function delCategory(id) {
    return request({
        url: `${module}/${id}`,
        method: 'delete'
    })
}
